<template>
  <div>
    <el-carousel :interval="5000" arrow="always">
      <el-carousel-item v-for="(item,i) in slides" :key="i">
        <img :src="item.src" :alt="item.title" >
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  name: "rotation",
  data () {
    return {
      slides:[
        {
          src: require('../assets/1.png'),
          title:"男人帮特色",
          href:'/'
        },
        {
          src: require('../assets/2.png'),
          title:"女神养成计划",
          href:'/'
        },
        {
          src: require('../assets/3.jpg'),
          title:"有腔调的品味",
          href:'/'
        },
        {
          src: require('../assets/4.jpg'),
          title:"有腔调的品味",
          href:'/'
        }
      ]
    }
  }
}
</script>

<style scoped>
.el-carousel__item h3 {
  color: #475669;
  font-size: 18px;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}
</style>
